window.onload=setTimeout("welcome()",1000) ;
function welcome() {
    var storage=window.localStorage;
    var user=storage.getItem("data");
    console.log(user);
    var user=JSON.parse(user);
    var username=user.user.userId;

    document.getElementById("username1").innerHTML=username;
    document.getElementById("username2").innerHTML=username;
    console.log(username)
}